/**
 * 作者：陈文斌 on 2019/1/4.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

class StringUtil {
  static String changePhoneNumberFormat(String phoneNumber) {
    String newPhoneNumber = phoneNumber;

    String leftStr = phoneNumber.substring(0, 3);

    String rightStr = phoneNumber.substring(7, phoneNumber.length);

    newPhoneNumber = leftStr + '****' + rightStr;

    return newPhoneNumber;
  }
}
